package com.victor.entity.step;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.victor.entity.step.Step;
import com.victor.entity.step.StepDetails;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * 入驻加盟实体类
 *
 */
@Entity
@Table(name = "jm_info")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class JMInfo {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 20)
	private Integer id; // 入驻id
	
	//合同  file 存本地

	@Column(name = "status", length = 5)
	private String status;// 0新提价审批未分配 1 分配正在审核流程中 2 审核完成未上传合同 3 审核完成 4审核未通过

	@Column(name = "emp_id", length = 100)
	private String emp_id;// 推广员工id

	@Column(name = "emp_number", length = 50)
	private String emp_number;// 推广员工编号

	@Column(name = "date", length = 50)
	private String date; // 申请时间

	@Column(name = "username", length = 50)
	private String username;// 当前登录用户名称

	@Column(name = "userid", length = 50)
	private String userid;// 当前登录用户id

	@Column(name = "linkman", length = 50)
	private String linkman; // 联系人

	@Column(name = "phone", length = 50)
	private String phone;// 联系电话

	@Column(name = "zongclass", length = 50)
	private String zongclass;// 入住加盟总类型 0美食商家入驻 1宾馆商家入驻 2旅游景区商家入驻 3休闲娱乐商家入驻

	// 以上是通用的

	// 美食入驻
	@Column(name = "msshopname", length = 50)
	private String msshopname; // 商家名称

	@Column(name = "msshopclass", length = 50)
	private String msshopclass;// 美食商家类型

	@Column(name = "msprovince", length = 50)
	private String msprovince;// 所在省份

	@Column(name = "mscity", length = 50)
	private String mscity;// 所在城市

	@Column(name = "msshiqu", length = 50)
	private String msshiqu;// 所在市区

	@Column(name = "msaddress", length = 50)
	private String msaddress;// 美食详细地址

	@Column(name = "msopentime", length = 50)
	private String msopentime;// 营业时间

	@Column(name = "msdetail", length = 50)
	private String msdetail;// 详细介绍，详细说明

	// 宾馆酒店商家入驻
	@Column(name = "bghotelname", length = 50)
	private String bghotelname;// 酒店名称

	@Column(name = "bgqiantaiphone", length = 50)
	private String bgqiantaiphone;// 前台电话

	@Column(name = "bgcompanyname", length = 50)
	private String bgcompanyname;// 公司全称

	@Column(name = "bgarea", length = 50)
	private String bgarea;// 宾馆所在区域

	@Column(name = "bgaddress", length = 50)
	private String bgaddress;// 宾馆地址

	@Column(name = "bghotelclass", length = 50)
	private String bghotelclass;// 酒店类型

	@Column(name = "bghotellevel", length = 50)
	private String bghotellevel;// 酒店星级

	@Column(name = "bgpricerange", length = 50)
	private String bgpricerange;// 客房售价区间

	@Column(name = "bgroomsum", length = 50)
	private String bgroomsum;// 客房总数

	@Column(name = "bgintroduce", length = 50)
	private String bgintroduce;// 酒店详细介绍

	@Column(name = "bgmanageraddress", length = 50)
	private String bgmanageraddress;// 经营者详细地址

	@Column(name = "bgqianyueeamil", length = 50)
	private String bgqianyueeamil;// 签约人邮箱

	// 景区入驻加盟
	@Column(name = "jqpermit", length = 50)
	private String jqpermit;// 经营许可

	@Column(name = "jqcompanyclass", length = 50)
	private String jqcompanyclass;// 公司类型

	@Column(name = "jqteamwork", length = 50)
	private String jqteamwork;// 合作业务

	@Column(name = "jqdirect", length = 50)
	private String jqdirect;// 景区直营： 0否，1 是

	@Column(name = "jqjingyingclass", length = 50)
	private String jqjingyingclass;// 经营特殊品类

	@Column(name = "jqxukezhengming1", length = 50)
	private String jqxukezhengming1;// 经营许可证明1

	@Column(name = "jqgongsibrand", length = 50)
	private String jqgongsibrand;// 公司品牌

	@Column(name = "jqcardnumber", length = 50)
	private String jqcardnumber;// 证件号码

	@Column(name = "jqcardname", length = 50)
	private String jqcardname;// 身份证名

	@Column(name = "jqcardstarttime", length = 50)
	private String jqcardstarttime;// 身份证发证日期

	@Column(name = "jqcardendtime", length = 50)
	private String jqcardendtime;// 身份证过期日期

	@Column(name = "jqcardaddress", length = 50)
	private String jqcardaddress;// 身份证地址

	@Column(name = "jqcarddeatiladdress", length = 50)
	private String jqcarddeatiladdress;// 身份证详细地址

	@Column(name = "jqxukezhengming2", length = 50)
	private String jqxukezhengming2;// 经营许可证明2

	@Column(name = "jqregistration", length = 50)
	private String jqregistration;// 统一社会信用代码/注册号

	@Column(name = "jqgsname", length = 50)
	private String jqgsname;// 公司全称

	@Column(name = "jqgsclass", length = 50)
	private String jqgsclass;// 公司类型

	@Column(name = "jqfaren", length = 50)
	private String jqfaren;// 法定代表人

	@Column(name = "jqregistmoney", length = 50)
	private String jqregistmoney;// 注册资本

	@Column(name = "jqstartdate", length = 50)
	private String jqstartdate;// 成立日期

	@Column(name = "jqenddate", length = 50)
	private String jqenddate;// 结束日期

	@Column(name = "jqgongsilocation", length = 50)
	private String jqgongsilocation;// 公司住所

	@Column(name = "jqdetailaddress", length = 50)
	private String jqdetailaddress;// 详细地址

	@Column(name = "jqjingyingrange", length = 50)
	private String jqjingyingrange;// 经营范围

	@Column(name = "jqqianyuecard", length = 50)
	private String jqqianyuecard;// 签约人身份证号

	@Column(name = "jqqianyueaddress", length = 50)
	private String jqqianyueaddress;// 签约人住址

	@Column(name = "jqqianyuedetailaddress", length = 50)
	private String jqqianyuedetailaddress;// 签约人详细地址

	@Transient
	private List<JMPhoto> photos;// 加盟营业执照，经营许可证，环境等相关照片，身份证，正反面，手持身份证照片 通用

	@Transient
	private Step step;// 流程表

	@Transient
	private StepDetails stepDetails;// 流程详情表

}
